<?php
	
	#
	# Garlic PHP/0.10
	# Copyleft (C) 2010 By Philip Patrick Butkiewicz (Bagno/Yuuki) and others (see "AUTHORS")
	# Project website: http://code.google.com/p/garlic-php
	#
	
	class garlicDebug {
		
		private $_handle;
		
		public function err((string)$str, (bool)$fp = false) {
			if ($fp) {
				$this->_handle = fopen("logs/".date("dmy"), "a");
				fputs($this->_handle, "$str\r\n");
				fclose($this->_handle);
			}
			
			echo $str; exit;
		}
	}
?>
